<?php
/**
 * 政策法规
 */
class PolicyApp extends CommonApp {
    //国家政策
    public function countryAct(){
        $result = self::getList('country');
    	self::assign_seo('country');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('country'));
        $this->display('Common/index');
    }
    //省市政策
    public function provinceAct(){
       $result = self::getList('province');
    	self::assign_seo('province');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('province'));
        $this->display('Common/index');
    }
    //学校政策
    public function schoolAct(){
        $result = self::getList('school');
        self::assign_seo('school');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('school'));
        $this->display('Common/index');
    }
    //详情
    public function detailAct(){
         $id = I('get.id');
        if(!My::is_id($id))
            $this->ajaxReturn(404,'文章详情ID有误!');
        // $item = My::arr2var($_REQUEST,'item');
        $result = self::detail($id);
        $this->assign('result',$result);
        $this->assign('menu',self::menu($result['item']));
        $this->display('Common/detail');
    }
}